import random
import taichi as ti

ti.init()

@ti.data_oriented
class A:
    def __init__(self):
        self.b = 0

    @ti.kernel
    def a(self):
        print(self.b)

#a = object.__new__(A)
cls_A = A
a = cls_A()
a.a()